package factories

import (
	"github.com/brianvoe/gofakeit/v6"
	"github.com/goravel/framework/facades"
)

type UserFactory struct {
}

// Definition Define the model's default state.
func (f *UserFactory) Definition() map[string]any {
	password, _ := facades.Crypt().EncryptString("admin888")

	return map[string]any{
		"name":          "运营商" + gofakeit.FirstName(),
		"mobile":        gofakeit.Name(),
		"password":      password,
		"contact":       gofakeit.Name(),
		"ContactMobile": gofakeit.Phone(),
		"address":       gofakeit.Street(),
		"IdCard":        gofakeit.CreditCard().Number,
	}
}
